//
//  TableBgView.h
//  DGGUIKit
//
//  Created by dgg_hzk on 2019/11/21.
//

#import <UIKit/UIKit.h>

@interface DLTableBgView : UIView
    
@property (weak, nonatomic) IBOutlet UIImageView *imageView;
@property (weak, nonatomic) IBOutlet UILabel *label;
@property (strong, nonatomic) IBOutlet UIButton *button;
@property (nonatomic,copy)void(^block)(void);
@property (strong, nonatomic) IBOutlet UILabel *contentLabel;
@property (weak, nonatomic) IBOutlet NSLayoutConstraint *centerY;

/**
 设置tableView背景View

 @param imageName 图片名称 必传
 @param title 标题 必传
 @param isShowBtn 是否显示下方button 必传
 @param btnTitle 如果显示btn 请设置btn标题
 @param content 详细说明
 @param block 点击Btn的回调
 @return view
 */
+ (instancetype)loadNibWithImageName:(NSString *)imageName
                               title:(NSString *)title
                           isShowBtn:(BOOL)isShowBtn
                            btnTitle:(NSString *)btnTitle
                             content:(NSString *)content
                         buttonColor:(UIColor *)buttonColor
                               block:(void(^)(void))block;
/**
 设置tableView背景View
 
 @param imageName 图片名称 必传
 @param title 标题 必传
 @param isShowBtn 是否显示下方button 必传
 @param btnTitle 如果显示btn 请设置btn标题
 @param content 详细说明
 @param centerY 偏移量
 @param block 点击Btn的回调
 @return view
 */
+ (instancetype)loadNibWithImageName:(NSString *)imageName
                               title:(NSString *)title
                           isShowBtn:(BOOL)isShowBtn
                            btnTitle:(NSString *)btnTitle
                             content:(NSString *)content
                             centerY:(CGFloat)centerY
                         buttonColor:(UIColor *)buttonColor
                               block:(void(^)(void))block;
@end
